App.set("tree_all", [{
	title: "食品 营养 保健",
	childs: Array(16)
}, {
	title: "护肤 美妆 养颜",
	childs: Array(16)
}, {
	title: "母婴 玩具 服装",
	childs: Array(16)
}, {
	title: "鞋子 箱包 奢侈品",
	childs: Array(16)
}, {
	title: "数码 家电 智能",
	childs: Array(16)
}, {
	title: "珠宝 饰品 收藏",
	childs: Array(16)
}, {
	title: "家装 家具 厨具",
	childs: Array(16)
}, {
	title: "艺术 培训 教育",
	childs: Array(16)
}, {
	title: "运动 户外 旅行",
	childs: Array(16)
}, {
	title: "图书 音像 数字商品",
	childs: Array(16)
}, {
	title: "票务 彩票 其他",
	childs: Array(16)
}]);

App.set("news_tabs", [
	"资讯",
	"策划",
	"论坛",
	"时尚"
]);


App.set("floors", [{
	classname: "floor_a",
	title: "大众喜欢",
	goods: [
	{img_: 'img/test/1.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/3.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/1.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/3.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/1.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/3.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/1.jpg'},
	{img_: 'img/test/4.jpg'},
	]
}, {
	classname: "floor_b",
	title: "精品汇",
	goods: [
	{img_: 'img/test/1.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/3.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/1.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/3.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/1.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/3.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/1.jpg'},
	{img_: 'img/test/4.jpg'},
	]
	// goods: Array(10)
}, {
	classname: "floor_c",
	title: "进口专区",
	// goods: Array(10),
	goods: [
	{img_: 'img/test/1.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/3.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/1.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/3.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/1.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/3.jpg'},
	{img_: 'img/test/4.jpg'},
	{img_: 'img/test/1.jpg'},
	{img_: 'img/test/4.jpg'},
	]
}])

App.set("imgs", ['/img/54810d41Nda3ab429.jpg',
	'/img/547d2ef8Na6b3616b.jpg',
	'/img/5481670cNbcc626e9.jpg',
	'/img/54802789N7f198616.jpg'
])

var box = $("#showbox");
var imgs = box.find("img");
var init_t = 1;
var timer = setInterval(function() {
	$(imgs[init_t % 4]).fadeIn(350);
	$(imgs[(init_t - 1) % 4]).fadeOut(350);
	init_t += 1;
}, 5000);


$('.floor_a_list ul li:eq(0) label').css({
	height: 400,
	padding: 0
})
	.html('<div class="tg3">' +
		'<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>' +
		'<div class="article"><img src="img/CgQI0lUrHSuAYYqqAACc8p86k1461500.jpg" style=" height:100%" /></div>' +
		'<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>' +
		'<div class="article"><img src="img/CgQI0lUrHSuAYYqqAACc8p86k1461500.jpg" style=" height:100%" /></div>' +
		'<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>' +
		'</div>')
// $('.floor_a_list ul li:eq(3) label').css({height:400,padding:0})
//                                     .html('<div class="tg4">'+
//                                           '<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>'+
//                                           '<div class="article"><img src="img/CgQI0lUrHSuAYYqqAACc8p86k1461500.jpg" style=" height:100%" /></div>'+
//                                           '<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>'+
//                                           '<div class="article"><img src="img/CgQI0lUrHSuAYYqqAACc8p86k1461500.jpg" style=" height:100%" /></div>'+
//                                           '<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>'+
//                                           '</div>')
$('.floor_c_list ul li:eq(0) label').css({
	height: 400,
	padding: 0
})
	.html('<div class="tg5">' +
		'<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>' +
		'<div class="article"><img src="img/CgQI0lUrHSuAYYqqAACc8p86k1461500.jpg" style=" height:100%" /></div>' +
		'<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>' +
		'<div class="article"><img src="img/CgQI0lUrHSuAYYqqAACc8p86k1461500.jpg" style=" height:100%" /></div>' +
		'<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>' +
		'</div>')
// $('.floor_c_list ul li:eq(3) label').css({height:400,padding:0})
//                                     .html('<div class="tg6">'+
//                                           '<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>'+
//                                           '<div class="article"><img src="img/CgQI0lUrHSuAYYqqAACc8p86k1461500.jpg" style=" height:100%" /></div>'+
//                                           '<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>'+
//                                           '<div class="article"><img src="img/CgQI0lUrHSuAYYqqAACc8p86k1461500.jpg" style=" height:100%" /></div>'+
//                                           '<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>'+
//                                           '</div>')
$('.floor_b_list ul li:eq(4) label').css({
	height: 400,
	padding: 0
})
	.html('<div class="tg7">' +
		'<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>' +
		'<div class="article"><img src="img/CgQI0lUrHSuAYYqqAACc8p86k1461500.jpg" style=" height:100%" /></div>' +
		'<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>' +
		'<div class="article"><img src="img/CgQI0lUrHSuAYYqqAACc8p86k1461500.jpg" style=" height:100%" /></div>' +
		'<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>' +
		'</div>')
// $('.floor_b_list ul li:eq(4) label').css({height:400,padding:0})
//                                     .html('<div class="tg8">'+
//                                           '<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>'+
//                                           '<div class="article"><img src="img/CgQI0lUrHSuAYYqqAACc8p86k1461500.jpg" style=" height:100%" /></div>'+
//                                           '<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>'+
//                                           '<div class="article"><img src="img/CgQI0lUrHSuAYYqqAACc8p86k1461500.jpg" style=" height:100%" /></div>'+
//                                           '<div class="article"><img src="img/CgQI0FUnnpSAcMgrAACKNosHNts97800.jpg" style=" height:100%" /></div>'+
//                                           '</div>')

$('.tg3,.tg4,.tg5,.tg6,.tg7,.tg8').owlCarousel({
	animateOut: 'fadeOut',
	items: 1,
	loop: true,
	nav: false,
	margin: 0,
	smartSpeed: 600,
	autoplay: true,
	autoplayTimeout: 5000
});
$('.main_top_tg2').append('<div class="tg2">' +
	'<div class="article"><img src="img/test/1.jpg" /></div>' +
	'<div class="article"><img src="img/test/2.jpg" /></div>' +
	'<div class="article"><img src="img/test/3.jpg" /></div>' +
	'<div class="article"><img src="img/test/4.jpg" /></div>' +
	'<div class="article"><img src="img/test/3.jpg" /></div>' +
	'<div class="article"><img src="img/test/2.jpg" /></div>' +
	'<div class="article"><img src="img/test/1.jpg" /></div>' +
	'<div class="article"><img src="img/test/2.jpg" /></div>' +
	'<div class="article"><img src="img/test/3.jpg" /></div>' +
	'<div class="article"><img src="img/test/4.jpg" /></div>' +
	'<div class="article"><img src="img/test/3.jpg" /></div>' +
	'</div>')
$('.tg2').owlCarousel({
	animateOut: 'fadeOut',
	items: 5,
	loop: true,
	nav: false,
	margin: 0,
	smartSpeed: 600,
	autoplay: true,
	autoplayTimeout: 5000
})